package com.newer.dao.sys.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.newer.pojo.sys.Region;
import com.newer.pojo.sys.RegionExample;

@Repository("regionMapper")
public interface RegionMapper {
    int countByExample(RegionExample example);

    int deleteByExample(RegionExample example);

    int deleteByPrimaryKey(String id);

    int insert(Region record);

    int insertSelective(Region record);

    List<Region> selectByExample(RegionExample example);
    
    List<Region> selectByPostCode(String postCode);

    Region selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Region record, @Param("example") RegionExample example);

    int updateByExample(@Param("record") Region record, @Param("example") RegionExample example);

    int updateByPrimaryKeySelective(Region record);

    int updateByPrimaryKey(Region record);
    
    int deleteRegionByIds(String array[]);
    
    int importRegions(List<Region> listRegion);
}